Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dropdown] Hide a possible open menu on destroy for correct reset state #657

Merged

Conversation

lubber-de
Copy link
Member

@lubber-de lubber-de commented Apr 10, 2019

Description

In case a dropdown is recreated and a menu was open, the re-instantiated dropdown still had this menu open, although the initial state of a dropdown is a hidden menu. The dropdown is not active, thus click events outside of the dropdown did not close the menu.
Also takes care, that any running animations are stopped

Testcase

#653

https://jsfiddle.net/gad2791y/

#654

https://jsfiddle.net/c62bagsn/

Closes

#653
#654

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/javascript Anything involving JavaScript state/awaiting-reviews Pull requests which are waiting for reviews labels Apr 10, 2019
@lubber-de lubber-de added this to the 2.7.5 milestone Apr 10, 2019
Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@ColinFrick ColinFrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lubber-de lubber-de requested a review from exoego April 11, 2019 07:27
Copy link
Contributor

@exoego exoego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@y0hami y0hami merged commit c374bcf into fomantic:develop Apr 11, 2019
@y0hami y0hami removed state/awaiting-reviews Pull requests which are waiting for reviews labels Apr 11, 2019
@lubber-de lubber-de deleted the fix/654/dropdown_destroy_remove_menu branch May 16, 2019 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants